package generator;

import com.baomidou.mybatisplus.generator.config.DataSourceConfig;
import com.youan.autocode.YACodeGenerator;

public class CodeGenerator extends YACodeGenerator {

    @Override
    protected String getSubFolderName() {
        return "";
    }

    @Override
    protected DataSourceConfig getDataSourceConfig() {
        DataSourceConfig dsc = new DataSourceConfig();
        dsc.setUrl("jdbc:mysql://192.168.1.200:3306/log_audit_system?useUnicode=true&useSSL=false&characterEncoding=utf8");
        // dsc.setSchemaName("public");
        dsc.setDriverName("com.mysql.cj.jdbc.Driver");
        dsc.setUsername("root");
        dsc.setPassword("admin");
        return dsc;
    }

    @Override
    protected String getPackage() {
        return "com.youan.log.modules";
    }

    @Override
    protected String getModuleName() {
        return "audit";
    }

    @Override
    protected String getTables() {
        return "region_data";
    }

    @Override
    protected String getTablePrefix() {
        return "";
    }
}